package com.qyer.util.log.util;

import java.util.ArrayList;
import java.util.List;

public class SuppliersUtil {
	
	public static final String FS="\t";

	public static List<String> getDimList(String isSelf, String group,
			String sgid, String sid) {
		List<String> ps = new ArrayList<String>();
		StringBuilder sb = new StringBuilder();
		
		sb.append("A").append(FS).append("A").append(FS).append("A").append(FS).append("A");
		ps.add(sb.toString());
		
		if(isSelf!=null&&!"".equals(isSelf)){
			sb = new StringBuilder();
			sb.append(isSelf).append(FS).append("A").append(FS).append("A").append(FS).append("A");
			ps.add(sb.toString());
		}
		
		if(isSelf!=null&&!"".equals(isSelf)&&group!=null&&!"".equals(group)){
			sb = new StringBuilder();
			sb.append(isSelf).append(FS).append(group).append(FS).append("A").append(FS).append("A");
			ps.add(sb.toString());
		}
		
		if(isSelf!=null&&!"".equals(isSelf)&&group!=null&&!"".equals(group)&&sgid!=null&&!"".equals(sgid)){
			sb = new StringBuilder();
			sb.append(isSelf).append(FS).append(group).append(FS).append(sgid).append(FS).append("A");
			ps.add(sb.toString());
		}
		
		if(isSelf!=null&&!"".equals(isSelf)&&group!=null&&!"".equals(group)&&sgid!=null&&!"".equals(sgid)&&sid!=null&&!"".equals(sid)){
			sb = new StringBuilder();
			sb.append(isSelf).append(FS).append(group).append(FS).append(sgid).append(FS).append(sid);
			ps.add(sb.toString());
		}
		return ps;
	}
	
	public static void main(String[] args) {
		for(String s: getDimList("a" , "b" , "c" , "d")){
			System.out.println(s);
		}
	}

}
